import request from '@/router/axios';
/* 分页 */
export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-merchant/merchant/feetMerForm/feet_mer_form/feetUserTradePage',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}
/* 表头 */
export const getTableTop = (formCode) => {
  return request({
    url: '/api/rb-merchant/merchant/feetUserTrade/feet_user_trade/formDefinedSelectList',
    method: 'get',
    params: {formCode}
  })
}
/* 统计 */
export const getAmount = (params) => {
  return request({
    url: '/api/rb-merchant/merchant/feetUserTrade/feet_user_trade/queryTradeAmount',
    method: 'get',
    params: {...params}
  })
}

/* 导出 */
export const getExport = (params) => {
  return request({
    /*headers: {
      "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    },
    responseType: 'blob',*/
    url: '/api/rb-merchant/merchant/feetUserTrade/feet_user_trade/exportFeetTrade',
    method: 'get',
    params: {
      ...params
    }
  })
}

/* 申请退款 */
export const refundOrder = (row) => {
  return request({
    // url: '/api/rb-pay/pay/formPay/refund',
    url: '/api/rb-merchant/merchant/feetUserTrade/feet_user_trade/refund',
    method: 'post',
    data: row
  })
}



